﻿using OT.Data;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace OT.Models
{
    public class Users
    {
        public int UserID { get; set; }
        [DisplayName("First Name")]
        public string FirstName { get; set; }
        [DisplayName("Last Name")]
        public string LastName { get; set; }

        [DataType(DataType.MultilineText)]
        public string Address { get; set; }

        [DisplayName("Email Address")]
        [DataType(DataType.EmailAddress)]
       [RegularExpression("^([a-zA-Z0-9_\\-\\.]+)@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$", ErrorMessage = "Email is not a valid e-mail address.")]
        public string EmailAddress { get; set; }

        [DisplayName("Password")]
         [DataType(DataType.Password)]
        public string Password { get; set; }

    
        [DataType(DataType.Password)]
       
        public string ConfirmPassword { get; set; }




        [DisplayName("Mobile No")]
        public string MobileNo { get; set; }

        public string LandlineNo { get; set; }

        [DisplayName("Country Name")]
        public int CountryID { get; set; }

        [DisplayName("State Name")]
        public int StateID { get; set; }

        [DisplayName("City Name")]
        public int CityID { get; set; }


        public bool Status { get; set; }
        public bool RememberMe { get; set; }

        [DisplayName("User Type")]
        public int UserTypeID { get; set; }

        [DataType(DataType.Date, ErrorMessage = "Please enter a valid date.dd/mm/yy"), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
        public System.DateTime CreatedDate { get; set; }

        [DataType(DataType.Date, ErrorMessage = "Please enter a valid date.dd/mm/yy"), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
        public System.DateTime UpdatedDate { get; set; }

        [DataType(DataType.Date, ErrorMessage = "Please enter a valid date.dd/mm/yy"), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
        public System.DateTime LastLoginDate { get; set; }

        [DisplayName("City Name")]
        public string CityName { get; set; }

        [DisplayName("User Type")]
        public string UserType1 { get; set; }

        public string LoginWith { get; set; }

        public Guid guid { get; set; }

        public bool IsVarify { get; set; }
 
        [Display(Name = "How much is the sum")]
        public string Captcha1 { get; set; }

        public ICollection<UserType> UserTypes { get; set; }
        public ICollection<Country> Countrys { get; set; }
        public ICollection<State> States { get; set; }
        public ICollection<City> Citys { get; set; }
    }
}